/*
 * XML Type:  LocalInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.LocalInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML LocalInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class LocalInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.LocalInfo
{
    
    public LocalInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LOCALITY$0 = 
        new javax.xml.namespace.QName("", "LOCALITY");
    private static final javax.xml.namespace.QName LOCALWAGES$2 = 
        new javax.xml.namespace.QName("", "LOCALWAGES");
    private static final javax.xml.namespace.QName LOCALTAXWH$4 = 
        new javax.xml.namespace.QName("", "LOCALTAXWH");
    
    
    /**
     * Gets the "LOCALITY" element
     */
    public java.lang.String getLOCALITY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALITY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LOCALITY" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetLOCALITY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(LOCALITY$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "LOCALITY" element
     */
    public void setLOCALITY(java.lang.String locality)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALITY$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOCALITY$0);
            }
            target.setStringValue(locality);
        }
    }
    
    /**
     * Sets (as xml) the "LOCALITY" element
     */
    public void xsetLOCALITY(net.ofx.types.x2003.x04.GenericNameType locality)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(LOCALITY$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(LOCALITY$0);
            }
            target.set(locality);
        }
    }
    
    /**
     * Gets the "LOCALWAGES" element
     */
    public java.lang.String getLOCALWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALWAGES$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LOCALWAGES" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetLOCALWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LOCALWAGES$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "LOCALWAGES" element
     */
    public boolean isSetLOCALWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOCALWAGES$2) != 0;
        }
    }
    
    /**
     * Sets the "LOCALWAGES" element
     */
    public void setLOCALWAGES(java.lang.String localwages)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALWAGES$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOCALWAGES$2);
            }
            target.setStringValue(localwages);
        }
    }
    
    /**
     * Sets (as xml) the "LOCALWAGES" element
     */
    public void xsetLOCALWAGES(net.ofx.types.x2003.x04.AmountType localwages)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LOCALWAGES$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(LOCALWAGES$2);
            }
            target.set(localwages);
        }
    }
    
    /**
     * Unsets the "LOCALWAGES" element
     */
    public void unsetLOCALWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOCALWAGES$2, 0);
        }
    }
    
    /**
     * Gets the "LOCALTAXWH" element
     */
    public java.lang.String getLOCALTAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALTAXWH$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LOCALTAXWH" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetLOCALTAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LOCALTAXWH$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "LOCALTAXWH" element
     */
    public boolean isSetLOCALTAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOCALTAXWH$4) != 0;
        }
    }
    
    /**
     * Sets the "LOCALTAXWH" element
     */
    public void setLOCALTAXWH(java.lang.String localtaxwh)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALTAXWH$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOCALTAXWH$4);
            }
            target.setStringValue(localtaxwh);
        }
    }
    
    /**
     * Sets (as xml) the "LOCALTAXWH" element
     */
    public void xsetLOCALTAXWH(net.ofx.types.x2003.x04.AmountType localtaxwh)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LOCALTAXWH$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(LOCALTAXWH$4);
            }
            target.set(localtaxwh);
        }
    }
    
    /**
     * Unsets the "LOCALTAXWH" element
     */
    public void unsetLOCALTAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOCALTAXWH$4, 0);
        }
    }
}
